Optimal. Leaf size=43 \[ \frac{B \sqrt{a+b x^2}}{b}-\frac{A \tanh ^{-1}\left (\frac{\sqrt{a+b x^2}}{\sqrt{a}}\right )}{\sqrt{a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0331544, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.182, Rules used = {446, 80, 63, 208} \[ \frac{B \sqrt{a+b x^2}}{b}-\frac{A \tanh ^{-1}\left (\frac{\sqrt{a+b x^2}}{\sqrt{a}}\right )}{\sqrt{a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 446
Rule 80
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{A+B x^2}{x \sqrt{a+b x^2}} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{A+B x}{x \sqrt{a+b x}} \, dx,x,x^2\right )\\ &=\frac{B \sqrt{a+b x^2}}{b}+\frac{1}{2} A \operatorname{Subst}\left (\int \frac{1}{x \sqrt{a+b x}} \, dx,x,x^2\right )\\ &=\frac{B \sqrt{a+b x^2}}{b}+\frac{A \operatorname{Subst}\left (\int \frac{1}{-\frac{a}{b}+\frac{x^2}{b}} \, dx,x,\sqrt{a+b x^2}\right )}{b}\\ &=\frac{B \sqrt{a+b x^2}}{b}-\frac{A \tanh ^{-1}\left (\frac{\sqrt{a+b x^2}}{\sqrt{a}}\right )}{\sqrt{a}}\\ \end{align*}
Mathematica [A] time = 0.0196275, size = 43, normalized size = 1. \[ \frac{B \sqrt{a+b x^2}}{b}-\frac{A \tanh ^{-1}\left (\frac{\sqrt{a+b x^2}}{\sqrt{a}}\right )}{\sqrt{a}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 45, normalized size = 1.1 \begin{align*}{\frac{B}{b}\sqrt{b{x}^{2}+a}}-{A\ln \left ({\frac{1}{x} \left ( 2\,a+2\,\sqrt{a}\sqrt{b{x}^{2}+a} \right ) } \right ){\frac{1}{\sqrt{a}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.58653, size = 246, normalized size = 5.72 \begin{align*} \left [\frac{A \sqrt{a} b \log \left (-\frac{b x^{2} - 2 \, \sqrt{b x^{2} + a} \sqrt{a} + 2 \, a}{x^{2}}\right ) + 2 \, \sqrt{b x^{2} + a} B a}{2 \, a b}, \frac{A \sqrt{-a} b \arctan \left (\frac{\sqrt{-a}}{\sqrt{b x^{2} + a}}\right ) + \sqrt{b x^{2} + a} B a}{a b}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 6.52413, size = 61, normalized size = 1.42 \begin{align*} \frac{A \operatorname{atan}{\left (\frac{1}{\sqrt{- \frac{1}{a}} \sqrt{a + b x^{2}}} \right )}}{a \sqrt{- \frac{1}{a}}} - \frac{B \left (\begin{cases} - \frac{x^{2}}{\sqrt{a}} & \text{for}\: b = 0 \\- \frac{2 \sqrt{a + b x^{2}}}{b} & \text{otherwise} \end{cases}\right )}{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13029, size = 51, normalized size = 1.19 \begin{align*} \frac{A \arctan \left (\frac{\sqrt{b x^{2} + a}}{\sqrt{-a}}\right )}{\sqrt{-a}} + \frac{\sqrt{b x^{2} + a} B}{b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]